/**
 * @file function-pointer.c
 * @author StudentWeis studentweis@gmail.com
 * @brief 对于函数指针的使用的练习
 * @version 0.1
 * @date 2021-12-16
 *
 * @copyright Copyright (c) 2021
 *
 */

#include <stdio.h>

void My_Print(void)
{
    printf("function pointer OK.\r\n");
}

typedef void (*pFuction)(void);

typedef struct cell
{
    int point;
    char test;
    pFuction pFuctionMy;
} cell;


int main()
{
    printf("你好，世界\r\n");
    cell MyCell;
    MyCell.pFuctionMy = &My_Print;
    MyCell.pFuctionMy();
}